We are migrating the bug tracker to github Issues. This is now the preferred way to report NASM bugs.

Self-registration is disabled due to spam issue (mail gorcunov@gmail.com or hpa@zytor.com to create an account)

Bug 3392441 - in listing file, lines with rept give the hex address offset of the second repetition
Summary: in listing file, lines with rept give the hex address offset of the second re...
Status: RESOLVED OUTOFDATE
Alias: None
Product: NASM
Classification: Unclassified
Component: Assembler (show other bugs)
Version: 2.13.xx
Hardware: All All
: Medium minor
Assignee: nobody
URL:
Depends on:
Blocks:
 
Reported: 2017-10-03 15:06 PDT by E. C. Masloch
Modified: 2017-10-03 16:35 PDT (History)
3 users (show)

Obtained from: Binary from nasm.us
Generated by: ---
Bug category:
Observed for: ---
Regression: ---
Regression since:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description E. C. Masloch 2017-10-03 15:06:10 PDT
$ nasm -v
NASM version 2.13 compiled on Apr 29 2017
$ cat test.asm
	cpu 8086
	org 0

	times 140h db 0
	times 2 dw 0
	times 1 dw 0
	dw 0

signature:
	dw 2638h
	align 16, db 0

	times 64 * 1024 db 0

signature2:
	dw 2638h
$ nasm test.asm -l test.lst
$ cat test.lst
     1                                  	cpu 8086
     2                                  	org 0
     3                                  
     4 00000001 00<rept>                	times 140h db 0
     5 00000142 0000<rept>              	times 2 dw 0
     6 00000144 0000                    	times 1 dw 0
     7 00000146 0000                    	dw 0
     8                                  
     9                                  signature:
    10 00000148 3826                    	dw 2638h
    11 0000014B 00<rept>                	align 16, db 0
    12                                  
    13 00000151 00<rept>                	times 64 * 1024 db 0
    14                                  
    15                                  signature2:
    16 00010150 3826                    	dw 2638h
$ 


Expected listing:

     1                                  	cpu 8086
     2                                  	org 0
     3                                  
     4 00000000 00<rept>                	times 140h db 0
     5 00000140 0000<rept>              	times 2 dw 0
     6 00000144 0000                    	times 1 dw 0
     7 00000146 0000                    	dw 0
     8                                  
     9                                  signature:
    10 00000148 3826                    	dw 2638h
    11 0000014A 00<rept>                	align 16, db 0
    12                                  
    13 00000150 00<rept>                	times 64 * 1024 db 0
    14                                  
    15                                  signature2:
    16 00010150 3826                    	dw 2638h
Comment 1 H. Peter Anvin 2017-10-03 16:35:03 PDT
Already fixed in 2.13.01.